package org.jeecg.prod.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 工单管理
 * @Author: LiCY
 * @Date: 2023-06-16
 * @Version: V1.0
 */
@Data
@TableName("mes_wo_src")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "mes_wo_src对象", description = "工单管理")
public class MesWoSrc implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 产线或产线组
     */
    @Excel(name = "产线或产线组", width = 15, dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @Dict(dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @ApiModelProperty(value = "产线或产线组")
    @MppMultiId
    @TableField(value = "line")
    private String line;
    /**
     * 工单ID
     */
    @Excel(name = "工单ID", width = 15)
    @ApiModelProperty(value = "工单ID")
    @MppMultiId
    @TableField(value = "woid")
    private String woid;
    /**
     * JDEID
     */
    @Excel(name = "JDEID", width = 15)
    @ApiModelProperty(value = "JDEID")
    private String jdeid;
    /**
     * 产品或产品组
     */
    @Excel(name = "产品或产品组", width = 15)
    @ApiModelProperty(value = "产品或产品组")
    private String partno;
    /**
     * 工单计划数量
     */
    @Excel(name = "工单计划数量", width = 15)
    @ApiModelProperty(value = "工单计划数量")
    private BigDecimal qty;
    /**
     * 工单计划起始时间
     */
    @Excel(name = "工单计划起始时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    @ApiModelProperty(value = "工单计划起始时间")
    private Date planStart;
    /**
     * 工单计划结束时间
     */
    @Excel(name = "工单计划结束时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    @ApiModelProperty(value = "工单计划结束时间")
    private Date planEnd;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date ctime;
}
